package main

import (
	"fmt"
	"time"
)

func test() {
	for i := 1; i <= 10; i++ {
		fmt.Println("协程中：", i)
		time.Sleep(time.Second)
	}
}

func main() {
	go test()

	for i := 1; i <= 10; i++ {
		fmt.Println("主线程中：", i)
		time.Sleep(time.Second)
	}

	var FirstName string
	fmt.Scanln(&FirstName)
}
